<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(document).ready(function(){
		 //增加隔行变色效果
  	     $(".listtable").zebra();
		 $("#framework_department_deptId").val("--自动生成部门编码--");
		 //加载所有部门数据
		 $('#framework_department_pdeptId').combotree({
			url:'${pageContext.request.contextPath}/systemManagerAction!getEtlDepartmentData.action?status=1',
			parentField : 'pid',
   			lines : true,
   			required: true,
   			onSelect:function(data){
   				var numstr=(new Date()).valueOf();
   				if(data.id!="parent"){
   					var deptId=data.id+"_"+numstr.toString().substring(11);
   					$('#framework_department_deptId').val(deptId);
   				}else{
   					var deptId=numstr.toString().substring(11);
   					$('#framework_department_deptId').val(deptId);
   				}
   			}
  	 	 });
	});

</script>


<form id="framework_department_addMenu" method="post">
  <table border="0" cellpadding="0" cellspacing="0" height="100%"  width="100%" class="listtable">
       <tr>
	      <td height="40px" nowrap="nowrap">&nbsp;部门编码：&nbsp;</td>
	      <td height="40px">
	          <input type="text" id="framework_department_deptId" name="deptId" readonly="readonly" style="width:150px;color:#808080"/>
	      </td>
	      <td height="40px" nowrap="nowrap"><span style="color:red;font-size:15px">*</span>上级部门名称：&nbsp;</td>
	      <td height="40px"><input id="framework_department_pdeptId" name="pdeptId" style="width:150px;" /></td>
       </tr>
        <tr>
	      <td height="40px" nowrap="nowrap"><span style="color:red;font-size:15px">*</span>部门名称：&nbsp;</td>
	      <td height="40px" nowrap="nowrap">
	          <input type="text" id="framework_department_deptName" name="deptName" class="easyui-validatebox" data-options="required:true,missingMessage:'部门名称必须填写'" style="width:150px"/>
	          <span id="framework_department_validdeptName" style="color:red"></span>
	      </td>
	      <td height="40px" nowrap="nowrap"><span style="color:red;font-size:15px">*</span>部门简称：&nbsp;</td>
	      <td height="40px"><input  id="framework_department_deptEnName" type="text" name="deptEnName" class="easyui-validatebox" data-options="required:true,missingMessage:'部门简称必须填写'" style="width:150px;" /></td>
        </tr>
         <tr>
	      <td height="40px" nowrap="nowrap">&nbsp;部门描述：&nbsp;</td>
	      <td height="40px" colspan="3">
	        <textarea id="framework_department_deptDEsc" name="deptDesc" class="easyui-validatebox" data-options="required:false,validType:'length[0,30]'" style="width:514px;height:60px;"></textarea>
          </td>
        </tr>
  </table>
</form>
